package com.server.server_a10.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.sound.midi.Synthesizer;
import java.io.Serializable;
import java.util.Date;

@Data
public class Equipment implements Serializable {
    @ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    public long id;

    @ApiModelProperty(value = "roomId")
    @TableField(value = "room_id")
    public long roomId;
    @ApiModelProperty(value = "homeId")
    @TableField(value = "home_id")
    public long homeId;

    @ApiModelProperty(value = "name")
    @TableField(value = "name")
    public String name;

    @TableField(exist = false)
    public boolean isConnect;
    
    public Equipment() {
    }
    public Equipment(Long id, long roomId, long homeId, String name) {
        this.id = id;
        this.roomId = roomId;
        this.homeId = homeId;
        this.name = name;
    }
}
